package com.itheima.abbitmqlistener;

import org.springframework.amqp.core.Message;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
public class RabbitMqListener {
    @RabbitListener(queues = "dlx_queue")
    public void rabbitConsumerListener(Message message){
        System.out.println(message);
    }
 }
